package design_pattern.ThreadLocal.Execution;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/11 14:52
 * @Version 1.0
 */
public class QueryFromDBAction {
    public void execute(){
        Context context = ActionContext.getActionContext().getContext();
        try {
            Thread.sleep(1000L);
            String name = "cxcx";
            //这里set 其实是set 保险箱里面的数据。
            context.setName(name);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
